package com.wy.dao;

import com.wy.pojo.Louyv;
import com.wy.pojo.Reside;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import javax.persistence.Id;
import java.util.List;

public interface LouyvDao extends JpaRepository<Louyv,Integer> {

    @Query(value = "SELECT * FROM louyv WHERE resideid=?1",nativeQuery = true)
    List<Louyv> searchidAll(Integer resideid);
}
